package com.quanyue.music.system.mapper;

import com.quanyue.music.domain.constant.CenterScope;
import com.quanyue.music.domain.constant.FMType;
import com.quanyue.music.domain.entity.CenterStatus;
import com.shzisg.mybatis.mapper.auto.AutoMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CenterStatusMapper extends AutoMapper<CenterStatus> {

    CenterStatus findByScopeAndType(@Param("scope") CenterScope scope,
                                    @Param("type") FMType type);

    List<CenterStatus> findByStatus(@Param("status") Boolean status);
}
